package com.bkgy.controller.tbbxrecord.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bkgy.controller.acidefficiency.entity.SingleRollListReq;
import com.bkgy.controller.acidefficiency.entity.SingleRollListResp;
import com.bkgy.controller.acidefficiency.entity.SingleRollReq;
import com.bkgy.controller.acidefficiency.entity.SingleRollSaveReq;
import com.bkgy.controller.tbbxrecord.entity.TbBxSyncjob;
import com.bkgy.sys.common.entity.ResultData;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ITbBxSyncService extends IService<TbBxSyncjob> {

    //加载宝信表秒用时以及开始结束时间
    public List<TbBxSyncjob> findBxData(String tableName, String coilId);

    //构建/完善某条记录
    ResultData<String> buildBxSync(String id);

    //构建一个区间段的记录
    ResultData<String> buildBxQujSync(String beginDate, String endDate);

    //酸轧单卷生产效率分析评价分页查询
    ResultData<SingleRollListResp> selectPage(SingleRollListReq req);

    //酸轧单卷生产效率分析评价，保存异常区域和异常信息
    ResultData saveSingleRoll(SingleRollSaveReq req);

    //酸轧单卷生产效率分析评价导出
    public void aosrpeExcel(SingleRollReq dto, HttpServletResponse response);

    //查询单卷秒用时
    ResultData getSingleRollSec(String entId);
}
